package com.tian.code.tool;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.tian.code.tool.service.CodeService;

/**
 * 程序入口点
 * 
 * @author xiecs
 * 
 */
public class Main {

	public static void main(String[] args) {

		ApplicationContext context = new ClassPathXmlApplicationContext("\\cfg\\spring.xml");
		CodeService codeService = (CodeService) context.getBean("codeService");

		try {
			codeService.buildModelCode();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
